package com.ply.flashsalessystem.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ply.flashsalessystem.entity.pojo.UserAmount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ply.flashsalessystem.entity.vo.UserAmountVo;
import com.ply.flashsalessystem.entity.wrapper.UserWrapper;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author XiaoPan
 * @since 2022-03-23
 */
@Mapper
public interface UserAmountMapper extends BaseMapper<UserAmount> {

    List<UserAmount> query(@Param("date") Date date);

    Page<UserAmountVo> getAmount(Page<Object> objectPage, @Param("uw") UserWrapper userWrapper);
}
